package com.fowo.api.model.stockage.info.order;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fowo.api.common.validator.*;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/**
 * 库龄明细 预览导入辅助模型(全字段为文本类型)
 * @author yl_ls
 */
@Getter
@Setter
public class StockageInfoOrderImportPo {

  /** 所属库存明细 */
  @ExcelProperty("所属库存明细")
  @Size(max = 100, message = "所属库存明细长度不能超过100")
  private String parentInventoryDetailOrderlistSku;

  @ExcelIgnore
  @Schema(title = "所属库存明细")
  private String parentInventoryDetailOrderlist;

  /** 标题 */
  @ExcelProperty("标题")
  @Size(max = 50, message = "标题长度不能超过50")
  private String name;

  /** qty */
  @ExcelProperty("qty")
  @IntegerString(message = "qty数值格式不正确", label = "qty", min = 0)
  private String qty;
}
